<?php

namespace app\model;

use think\Model;

/**
 * 广告模型
 * @package app\model
 */
class Domain extends Model
{
    // 自动写入时间戳
    protected $autoWriteTimestamp = true;

    public static function getDomainByTmp($tmp)
    {
        $domain = self::where('view_directory', $tmp)->find();
        return $domain->name;
    }
}
